/**
 * 视频评论相关接口
 */
import request from '@/config/request'
import type { CvCommentReqVO, CvCommentSaveReqVO } from '@/types/comment'

/**
 * 发布评论
 */
export const createComment = (data: CvCommentSaveReqVO) => {
  return request.post({ url: '/platform/video/comment/create', data })
}

/**
 * 获取视频评论分页数据
 */
export const getCommentPage = (reqVO: CvCommentReqVO) => {
  return request.get({ url: '/platform/video/comment/page', params: reqVO })
}
